<script src="/res/editor/js/webeditor.js" tppe="text/javascript"></script>
<script src="/js/cartoon.js" tppe="text/javascript"></script>
<form>
<table class="mlist"  cellpadding="0" width="50%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap>id</td>
		<td nowrap>描述</td>
		<td nowrap>创建时间</td>
		<td nowrap>操作</td>
	</thead>	
	<?if($this->ret['data']):?>
	<? foreach ($this->ret['data'] as $row):?>
	<tr align="left">
		<td nowrap><?= $row['id']?></td>
		<td>
		<?=$row['info']?>
		</td>
		<td>
		<?=date('Y-m-d H:i',$row['add_time'])?>
		</td>
		<td nowrap align="left">
		<a href="javascript:void(0);" onclick="Cartoon.del_uplog(<?=$row['id']?>)">删除</span>
		</td>
	</tr>
	<? endforeach;?>
	<?else:?>
	<tr align="center">
	<td colspan="10">暂无记录</td>
	</tr>
	<?endif;?>
	<thead>
	<td colspan="8"><?=$this->ret['pages']?></td>
	</thead>
</table>
</form>
<div style="float:left; padding-left: 10px">

</div>
<table class="mlist"  cellpadding="0" width="50%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap colspan="2">添加</td>
	</thead>
	<tr align="left">
		<td nowrap>标题：</td>
		<td nowrap>
		<input type="text" title="标题" class="input_text" id="title" name="title" />
		</td>
	</tr>
	<tr align="left">
		<td nowrap>描述：</td>
		<td nowrap>
		<input type="hidden" id="s_desc" name="s_desc" />
	<div id="postcontent">
		<textarea id="simple_desc" name="simple_desc" ></textarea>
	</div>
	<script type="text/javascript">
	var e_fontsize = true;
	var e_face = true;
	var e_media = false;
	var e_bold = true;
	var e_InsertOrderedList = true;
	var e_italic = true;
	var e_underline = true;
	var e_JustifyLeft = true;
	var e_JustifyCenter = true;
	var e_JustifyRight = true;
	var e_font = true;
	var e_color = true;
	var e_backcolor = false;
	var e_img = true;
	var e_link = true;
	var e_uploadimg = false;
	var e_piclink = false;
	var e_CommentFace = false;
	var e_face = false;
	var e_toolbarbg = true;
	s_content_editor = new webEditor("s_content_editor" , 	$("postcontent"),500,200);
	s_content_editor.init($('simple_desc').value);
</script>
		</td>
	</tr>
	
	<thead>
	<td colspan="2" align="center"><input type="button" value="添加" onclick="Cartoon.add_uplog();" /></td>
	</thead>
</table>

